package com.base.project.resultMapUtil;

/**
 * @ProjectName: airline
 * @Package: com.base.project.resultMapUtil
 * @Description: java类作用描述
 * @Author: Z.G.C
 * @CreateDate: 2019/9/27 3:05 PM
 * @UpdateUser: Z.G.C
 * @UpdateDate: 2019/9/27 3:05 PM
 * @UpdateRemark: The modified content
 * @Version: 1.0
 * <p>Copyright: Copyright (c) 2019</p>
 */
public enum ResultCode implements EnumInterface{
    /**
     * api异常枚举
     */
    SUCCESS("SUCCESS","成功"),

    SYSTEM_ERROR("SYSTEM_ERROR", "系统异常"),

    API_NOT_EXIST("API_NOT_EXIST", "API方法不存在"),

    INVALID_PUBLIC_PARAM("INVALID_PUBLIC_PARAM", "无效公共参数 >> {0}"),

    INVALID_REQUEST_ERROR("INVALID_REQUEST_ERROR", " 请求方式 [{0}] 错误 ! 请使用 {1} 方式"),

    INVALID_PARAM("INVALID_PARAM", "无效参数 >> 参数[{0}] >> 原因[{1}]"),

    INVALID_SIGN("INVALID_SIGN", "无效签名"),

    VERIFIVATION_CODE_ERROR("VERIFIVATION_CODE_ERROR","验证码错误");


    ResultCode(String code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    private String code;

    private String msg;

    @Override
    public String getCode() {
        return code;
    }

    @Override
    public String getMsg() {
        return msg;
    }
}
